<!-- $Id: snatch_list.htm 14216 2008-03-10 02:27:21Z testyang $ -->
{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<div class="form-div">
  <form action="javascript:searchUser()" name="searchForm" >
    <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
    {$lang.snatch_name} <input type="text" name="keyword" id="keywords" /> <input type="submit" value="{$lang.button_search}" class="button" id="signsearch" />
  </form>
</div>
<script type="text/javascript" src="../mobile/js/jquery-1.9.1.min.js"></script>
<style type="text/css">
  .action-span{
    display: none;
  }
</style>

<form method="post" action="" name="listForm">
<div class="list-div" id="listDiv">
{/if}

  <table cellpadding="3" cellspacing="1" >
    <tr>
      <th><a href="javascript:listTable.sort('act_id'); ">{$lang.record_id}</a>{$sort_act_id}</th>
      <th><a href="javascript:listTable.sort('snatch_name'); ">{$lang.sign_name}</a>{$sort_snatch_name}</th>
      <th><a href="javascript:listTable.sort('goods_name'); ">{$lang.sign_phone}</a>{$sort_goods_name}</th>
      <th><a href="javascript:listTable.sort('start_time'); ">{$lang.sign_time}</a>{$sort_start_time}</th>
      <th><a href="javascript:listTable.sort('end_time'); ">{$lang.sign_activity}</a>{$sort_end_time}</th>
      <th><a href="javascript:listTable.sort('end_time'); ">{$lang.audit_status}</a>{$sort_end_time}</th>
      <th><a href="javascript:listTable.sort('end_time'); ">{$lang.audit_time}</a>{$sort_end_time}</th>
     
      <th>{$lang.handler}</th>
    </tr>
    <div id="ulNode">
      {foreach from=$snatch_list item=snatch}
      <tr>
        <td align="center">{$snatch.sign_id}</td>
        <td align="center"><span onclick="listTable.edit(this, 'edit_snatch_name', {$snatch.act_id})">{$snatch.sign_name}</span></td>
        <td align="center"><span>{$snatch.sign_phone}</span></td>
        <td align="center">{$snatch.sign_time}</td>
        <td align="center">{$snatch.activity_name}</td>
        <td align="center">{$snatch.audit_status}</td>
        <td align="center">{$snatch.audit_time}</td>
        <td align="center">
          
          <a href="sign.php?act=edit&amp;sign_id={$snatch.sign_id}" title="{$lang.edit}"><img src="images/icon_edit.gif" border="0" height="16" width="16"></a>
          <a href="javascript:;" onclick="listTable.remove({$snatch.sign_id},'{$lang.drop_confirm}')" title="{$lang.remove}"><img src="images/icon_drop.gif" border="0" height="16" width="16"></a>
        </td>
      </tr>
      {foreachelse}
      <tr><td class="no-records" colspan="10">{$lang.no_records}</td></tr>
      {/foreach}
    </div>
    <tr>
      <td align="right" nowrap="true" colspan="10">{include file="page.htm"}</td>
    </tr>
  </table>

{if $full_page}
</div>
</form>
<!-- end article list -->

<script type="text/javascript" language="JavaScript">

  listTable.recordCount = {$record_count};
  listTable.pageCount = {$page_count};

  {foreach from=$filter item=item key=key}
  listTable.filter.{$key} = '{$item}';
  {/foreach}

/**
 * 搜索用户
 */
function searchUser()
{
    listTable.filter['keywords'] = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
    // <!-- listTable.filter['rank'] = document.forms['searchForm'].elements['user_rank'].value; -->
    // <!-- listTable.filter['pay_points_gt'] = Utils.trim(document.forms['searchForm'].elements['pay_points_gt'].value); -->
    // <!-- listTable.filter['pay_points_lt'] = Utils.trim(document.forms['searchForm'].elements['pay_points_lt'].value); -->
    listTable.filter['page'] = 1;
    listTable.loadList();
}

</script>
{/literal}
{include file="pagefooter.htm"}
{/if}

